package com.platform.dto;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

import static com.platform.comm.util.DateTimeUtil.STD_DATE_FMT_PATTERN;
import static com.platform.comm.util.DateTimeUtil.STD_LONG_TIME_PATTERN;

/**
 * Description: CdJxcManageReq is a Request entity object for Adding Or Modification.
 *
 * @author Coder
 */
@Setter
@Getter
public class CdJxcManageDto {

    /**
     * id
     */
    private String id;

    /**
     * 产品id
     */
    private String productId;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 规格
     */
    private String specification;

    /**
     * 颜色
     */
    private String color;

    /**
     * 是否带涂层：1:有；0:无
     */
    private String coating;


    /**
     * 出入库数量
     */
    private Long count;

    /**
     * 0：半成品，1:成品
     */
    private String category;

    /**
     * 0:出；1:入
     */
    private String outandin;

    /**
     * 操作人
     */
    private String operateName;

    /**
     * 创建日期
     */
    @DateTimeFormat(pattern = STD_LONG_TIME_PATTERN)
    private LocalDateTime createDate;

    /**
     * 操作时间
     */
    @DateTimeFormat(pattern = STD_DATE_FMT_PATTERN)
    private LocalDate operateDate;

    /**
     * 批次id
     */
    private String batchId;

    private String comId;

    private String comName;

}
